<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<style type="text/css">
* {
	margin: 0;
	padding: 0
}

#mainDiv {
	
	height: 480px;
	left: 50%;
	margin: -240px 0 0 -150px;
	position: absolute;
	top: 50%;
	width: 300px;
	font: bolder;
	font-family: "arial";
	font-size: "12px";
	
}
</style>
</h:head>
<h:body>
	<h:form id="form">

    <p:growl id="msgs" showDetail="true"/>
				
	<p:panel header="Double Combo" style="margin-bottom:10px;">
        <h:panelGrid columns="3" cellpadding="5">
           
           <p:selectOneMenu id="curso" value="#{opa.curso}">
                <f:selectItem itemLabel="Selecione o curso" itemValue="" />
                <f:selectItems value="#{opa.cursos}" />
            </p:selectOneMenu>
           
            <p:selectOneMenu id="convenio" value="#{opa.convenio}">
                <f:selectItem itemLabel="Selcione o convenio" itemValue="" />
                <f:selectItems value="#{opa.convenios}" />
                <p:ajax update="telessala"
                        listener="#{opa.tratarTrocaConvenio}" />
            </p:selectOneMenu>
		
            <p:selectOneMenu id="telessala" value="#{opa.telessala}">
                <f:selectItem itemLabel="Selecione a telessala" />
                <!-- var="est" itemLabel="#{est.desc} itemValue="est"" -->
                <f:selectItems value="#{opa.telessalas}" />
            </p:selectOneMenu>
            
            <p:commandButton value="Entrar" ajax="false"
					action="#{opa.redirecionarFileUpload}" />
        </h:panelGrid>

        <p:separator />
		
	</p:panel>

</h:form>
	
	<h:form id="testeuisdhu">
	   <p:commandButton value="Entrar"
					action="#{opa.redirecionarFileUpload}" />
	</h:form>
	
</h:body>
</html>